﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.IO;

namespace XMLHelper
{
    public class XMLReader
    {
        public XMLReader() 
        {
        
        }

        public void Read() 
        {
            DataSet xml = new DataSet();
            xml.ReadXml("C:\\Users\\Caio\\Desktop\\projetoia\\code\\IndicadorDeMusicas\\XMLHelper\\Banco.xml");
            DataTable table = xml.Tables[0];
            DataRow row = table.Rows[0];
            string nome = row["Nome"].ToString();
        }

        public Musica Read()
        {
            DataSet xml = new DataSet();
            xml.ReadXml("C:\\Users\\Caio\\Desktop\\projetoia\\code\\IndicadorDeMusicas\\XMLHelper\\Banco.xml");
            DataTable table = xml.Tables[0];
            DataRow row = table.Rows[0];
            string nome = row["Nome"].ToString();
        }

        public void Write() 
        {
        
        }
    }
}
